<?php
/**
 * Created by PhpStorm.
 * User: zzw
 * Date: 17-4-17
 * Time: 上午10:43
 */
?>
<?php
/* *
 * 功能：支付宝批量付款到支付宝账户有密接口接口调试入口页面
 * 版本：3.3
 * 日期：2012-07-23
 * 说明：
 * 以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 */

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>支付宝批量付款到支付宝账户有密接口接口</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style>
        *{
            margin:0;
            padding:0;
        }
        ul,ol{
            list-style:none;
        }
        .title{
            color: #ADADAD;
            font-size: 14px;
            font-weight: bold;
            padding: 8px 16px 5px 10px;
        }
        .hidden{
            display:none;
        }

        .new-btn-login-sp{
            border:1px solid #D74C00;
            padding:1px;
            display:inline-block;
        }

        .new-btn-login{
            background-color: #ff8c00;
            color: #FFFFFF;
            font-weight: bold;
            border: medium none;
            width:82px;
            height:28px;
        }
        .new-btn-login:hover{
            background-color: #ffa300;
            width: 82px;
            color: #FFFFFF;
            font-weight: bold;
            height: 28px;
        }
        .bank-list{
            overflow:hidden;
            margin-top:5px;
        }
        .bank-list li{
            float:left;
            width:153px;
            margin-bottom:5px;
        }

        #main{
            width:750px;
            margin:0 auto;
            font-size:14px;
            font-family:'宋体';
        }
        #logo{
            background-color: transparent;
            background-image: url("images/new-btn-fixed.png");
            border: medium none;
            background-position:0 0;
            width:166px;
            height:35px;
            float:left;
        }
        .red-star{
            color:#f00;
            width:10px;
            display:inline-block;
        }
        .null-star{
            color:#fff;
        }
        .content{
            margin-top:5px;
        }

        .content dt{
            width:200px;
            display:inline-block;
            text-align:right;
            float:left;

        }
        .content dd{
            margin-left:100px;
            margin-bottom:5px;
        }
        #foot{
            margin-top:10px;
        }
        .foot-ul li {
            text-align:center;
        }
        .note-help {
            color: #999999;
            font-size: 12px;
            line-height: 130%;
            padding-left: 3px;
        }

        .cashier-nav {
            font-size: 14px;
            margin: 15px 0 10px;
            text-align: left;
            height:30px;
            border-bottom:solid 2px #CFD2D7;
        }
        .cashier-nav ol li {
            float: left;
        }
        .cashier-nav li.current {
            color: #AB4400;
            font-weight: bold;
        }
        .cashier-nav li.last {
            clear:right;
        }
        .alipay_link {
            text-align:right;
        }
        .alipay_link a:link{
            text-decoration:none;
            color:#8D8D8D;
        }
        .alipay_link a:visited{
            text-decoration:none;
            color:#8D8D8D;
        }
    </style>
</head>
<body text=#000000 bgColor=#ffffff leftMargin=0 topMargin=4>
<div id="main">
    <div id="head">
        <dl class="alipay_link">
            <a target="_blank" href="http://www.alipay.com/"><span>支付宝首页</span></a>|
            <a target="_blank" href="https://b.alipay.com/home.htm"><span>商家服务</span></a>|
            <a target="_blank" href="http://help.alipay.com/support/index_sh.htm"><span>帮助中心</span></a>
        </dl>
        <span class="title">支付宝批量付款到支付宝账户有密接口快速通道</span>
    </div>
    <div class="cashier-nav">
        <ol>
            <li class="current">1、确认信息 →</li>
            <li>2、点击确认 →</li>
            <li class="last">3、确认完成</li>
        </ol>
    </div>
    <?php echo form_open(current_urlc(),array("class"=>"form-horizontal","id"=>"alipayment")); ?>
        <div id="body" style="clear:left">
            <dl class="content">
                <dt>付款账号：</dt>
                <dd>
                    <span class="null-star">*</span>
                    <input size="30" name="WIDemail" value="huaqianqr@163.com" readonly />
                        <span>必填
</span>
                </dd>
                <dt>付款账户名：</dt>
                <dd>
                    <span class="null-star">*</span>
                    <input size="30" name="WIDaccount_name" value="杭州华千科技有限公司" readonly />
                        <span>必填，个人支付宝账号是真实姓名公司支付宝账号是公司名称
</span>
                </dd>
                <dt>付款当天日期：</dt>
                <dd>
                    <span class="null-star">*</span>
                    <input size="30" name="WIDpay_date" value="<?php echo date('Ymd',time())?>" readonly/>
                        <span>必填，格式：年[4位]月[2位]日[2位]，如：20100801
</span>
                </dd>
                <dt>批次号：</dt>
                <dd>
                    <span class="null-star">*</span>
                    <?php $ordernum = ordernum_time('',true);?>
                    <input size="30" name="WIDbatch_no" value="<?php echo date('Ymd',time()).$batch['partner_trade_no']?>" readonly />
                        <span>必填，格式：当天日期[8位]+序列号[3至16位]，如：201008010000001
</span>
                </dd>
                <dt>付款总金额：</dt>
                <dd>
                    <span class="null-star">*</span>
                    <input size="30" name="WIDbatch_fee" value="<?php echo $batch['money']?>" readonly/>
                        <span>必填，即参数detail_data的值中所有金额的总和
</span>
                </dd>
                <dt>付款笔数：</dt>
                <dd>
                    <span class="null-star">*</span>
                    <input size="30" name="WIDbatch_num" value="1" readonly />
                        <span>必填，即参数detail_data的值中，“|”字符出现的数量加1，最大支持1000笔（即“|”字符出现的数量999个）
</span>
                </dd>
                <dt>付款详细数据：</dt>
                <dd>
                    <span class="null-star">*</span>
                    <input size="30" style="width: 530px"  name="WIDdetail_data" value="<?php echo 'A-'.$batch['partner_trade_no'].'^'.$batch['alipay_num'].'^'.$batch['alipay_name'].'^'.$batch['money'].'^'.'用户id'.$batch['uid']?>" readonly />
                    <span>必填，格式：流水号1^收款方帐号1^真实姓名^付款金额1^备注说明1|流水号2^收款方帐号2^真实姓名^付款金额2^备注说明2....</span>
                </dd>
                <dt></dt>
                <dd>
                        <span class="new-btn-login-sp">
                            <button class="new-btn-login" type="submit" style="text-align:center;">确 认</button>
                        </span>
                </dd>
            </dl>
        </div>
    <input type="hidden" name="cid" value="<?php echo $this->cid ?>">
    </form>
    <div id="foot">
        <ul class="foot-ul">
            <li><font class="note-help">如果您点击“确认”按钮，即表示您同意该次的执行操作。 </font></li>
            <li>
                支付宝版权所有 2011-2015 ALIPAY.COM
            </li>
        </ul>
    </div>
</div>
</body>
</html>
